/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2024 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define Alert_24V_Pin GPIO_PIN_2
#define Alert_24V_GPIO_Port GPIOE
#define Alert_12V_Pin GPIO_PIN_3
#define Alert_12V_GPIO_Port GPIOE
#define OT_INT_Pin GPIO_PIN_4
#define OT_INT_GPIO_Port GPIOE
#define PWRKEY_Pin GPIO_PIN_5
#define PWRKEY_GPIO_Port GPIOE
#define RESET_H_Pin GPIO_PIN_6
#define RESET_H_GPIO_Port GPIOE
#define Display_EN1_Pin GPIO_PIN_13
#define Display_EN1_GPIO_Port GPIOC
#define Display_EN2_Pin GPIO_PIN_14
#define Display_EN2_GPIO_Port GPIOC
#define P24V_Encoder_EN_Pin GPIO_PIN_15
#define P24V_Encoder_EN_GPIO_Port GPIOC
#define P24V_Water_EN_Pin GPIO_PIN_0
#define P24V_Water_EN_GPIO_Port GPIOC
#define MCU_IO1_Pin GPIO_PIN_1
#define MCU_IO1_GPIO_Port GPIOC
#define MCU_IO2_Pin GPIO_PIN_2
#define MCU_IO2_GPIO_Port GPIOC
#define DI0_MCU_Pin GPIO_PIN_3
#define DI0_MCU_GPIO_Port GPIOC
#define SPI1_CS_Pin GPIO_PIN_4
#define SPI1_CS_GPIO_Port GPIOA
#define FAN_EN_Pin GPIO_PIN_4
#define FAN_EN_GPIO_Port GPIOC
#define LED_1_MCU_Pin GPIO_PIN_5
#define LED_1_MCU_GPIO_Port GPIOC
#define MCU_WDI_Pin GPIO_PIN_0
#define MCU_WDI_GPIO_Port GPIOB
#define LED_Pin GPIO_PIN_1
#define LED_GPIO_Port GPIOB
#define UART3_DE_Pin GPIO_PIN_7
#define UART3_DE_GPIO_Port GPIOE
#define UART3_RE_Pin GPIO_PIN_8
#define UART3_RE_GPIO_Port GPIOE
#define UART4_DE_Pin GPIO_PIN_9
#define UART4_DE_GPIO_Port GPIOE
#define UART4_RE_Pin GPIO_PIN_10
#define UART4_RE_GPIO_Port GPIOE
#define UART5_DE_Pin GPIO_PIN_11
#define UART5_DE_GPIO_Port GPIOE
#define UART5_RE_Pin GPIO_PIN_12
#define UART5_RE_GPIO_Port GPIOE
#define P5V_Encoder_EN1_Pin GPIO_PIN_13
#define P5V_Encoder_EN1_GPIO_Port GPIOE
#define P5V_Encoder_EN2_Pin GPIO_PIN_14
#define P5V_Encoder_EN2_GPIO_Port GPIOE
#define P12V_DI_EN1_Pin GPIO_PIN_15
#define P12V_DI_EN1_GPIO_Port GPIOE
#define P12V_DI_EN2_Pin GPIO_PIN_10
#define P12V_DI_EN2_GPIO_Port GPIOB
#define DI1_MCU_Pin GPIO_PIN_11
#define DI1_MCU_GPIO_Port GPIOB
#define DI2_MCU_Pin GPIO_PIN_12
#define DI2_MCU_GPIO_Port GPIOB
#define DI3_MCU_Pin GPIO_PIN_13
#define DI3_MCU_GPIO_Port GPIOB
#define DI4_MCU_Pin GPIO_PIN_14
#define DI4_MCU_GPIO_Port GPIOB
#define MCU_IO3_Pin GPIO_PIN_15
#define MCU_IO3_GPIO_Port GPIOB
#define P12V_Flow_EN_Pin GPIO_PIN_10
#define P12V_Flow_EN_GPIO_Port GPIOD
#define P12V_Water_EN_Pin GPIO_PIN_11
#define P12V_Water_EN_GPIO_Port GPIOD
#define Y0_MCU_Pin GPIO_PIN_12
#define Y0_MCU_GPIO_Port GPIOD
#define Y1_MCU_Pin GPIO_PIN_13
#define Y1_MCU_GPIO_Port GPIOD
#define Y2_MCU_Pin GPIO_PIN_14
#define Y2_MCU_GPIO_Port GPIOD
#define SEL_Encoder_Pin GPIO_PIN_15
#define SEL_Encoder_GPIO_Port GPIOD
#define P3V8_EN_Pin GPIO_PIN_8
#define P3V8_EN_GPIO_Port GPIOC
#define KEY_ID1_Pin GPIO_PIN_9
#define KEY_ID1_GPIO_Port GPIOC
#define KEY_ID2_Pin GPIO_PIN_8
#define KEY_ID2_GPIO_Port GPIOA
#define Display_EN_Pin GPIO_PIN_11
#define Display_EN_GPIO_Port GPIOA

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
